package com.zzw.utils;

import java.util.Date;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class JaxbDateSerializer extends XmlAdapter<String, Date>{

	@Override
	public Date unmarshal(String v) throws Exception {
		return MyDateFormat.StringToDate(v); 
	}

	@Override
	public String marshal(Date v) throws Exception {
		return MyDateFormat.DateToString(v); 
	} 
}
